Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
return to the same script event by click "back" button in the browser

I have HTML form (buttons, inputs, etc). Each component as its own event that trigger specific script. I want the browser to remember which action happened when the user press the "back" button. (Example: If the user presses the 'blue button', then he can return to the same place when he clicks "back" in the browser).

I thought of doing this by using local storage in every event that triggered. Then at the beginning of the code to check which local storage is exist and trigger the event again.

But it seems ineffective to me. Anyone have a better idea?

Thanks.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!